<script lang="ts" setup>

const { img, titleName } = defineProps({
  img: {
    type: String
  },
  titleName: {
    type: String
  }
})
</script>

<template>
  <div class="title-main">
    <div class="left">
      <el-image :src="img"></el-image>
    </div>
    <div class="right">{{ titleName }}</div>
  </div>
</template>

<style lang="scss" scoped>
.title-main {
  display: flex;
  border: 1px solid #dedddd;
  height: 40px;
  border-bottom: none;
  .left {
    flex: 0 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid #dedddd;
    .el-image {
      width: 20px;
      height: 20px;
    }
  }
  .right {
    flex: 1;
    display: flex;
    justify-content: left;
    margin-left: 10px;
    align-items: center;
    // background-color: #fff;
  }
}
</style>
